//
//  GameModel.h
//  CoreGraphicsTest
//
//  Created by aewatson on 11/19/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GameModel.h"

typedef enum {
    UP = 0,
    RIGHT = 1,
    LEFT = -1
} DIRECTION;

typedef enum {
    RED = 0,
    GREEN = 1,
    BLUE = 2
} COLOR;

typedef enum {
    TYPE_BLOCK = 0,
    TYPE_SHOT = 1
} BLOCK_TYPE;

@interface BlockModel : NSObject {
    float centerX;
    float centerY;
    float size;
    float velocityX;
    float velocityY;
    CGRect rect;
    DIRECTION direction;
    COLOR color;
}

@property (nonatomic) float centerX;
@property (nonatomic) float centerY;
@property (nonatomic) float velocityX;
@property (nonatomic) float velocityY;
@property (nonatomic) float size;
@property (nonatomic) CGRect rect;
@property (nonatomic) DIRECTION direction;
@property (nonatomic) COLOR color;

-(id)initWithSize:(float) newSize centerX:(float) newX centerY:(float) newY direction:(DIRECTION) newDirection andColor:(COLOR) newColor;
-(float)getLeft;
-(float)getTop;
-(float)getWidth;
-(float)getHeight;
-(COLOR) getColor;
-(void) setCenterX:(float) newX andY:(float) newY;
-(void) moveByDeltaX:(float) dX andDeltaY:(float) dY;
-(void) locationAfterMilliseconds:(float) ms;

@end
